$(document).ready(function() {
	/*$("a").click(function() {
		alert("Hello world!");
	});*/
	$("#orderedlist").addClass("red");
	$("#orderedlist > li").addClass("blue");
	$("#orderedlist li:last").hover(function() {
		$(this).addClass("green");
	}, function() {
		$(this).removeClass("green");
	});
	$("#orderedlist2").find("li").each(function(i) {
		$(this).html( $(this).html() + " BAM! " + i );
	});
	
	// use this to reset several forms at once
	$("#reset").click(function() {
		$("form").each(function() {
			this.reset();
		});
	});
	/*
	$(document).ready(function() {
	$("li").not(":has(ul)").css("border", "1px solid black");
	//$("li").not("[ul]").css("border", "1px solid black");
	});*/
	
	$(document).ready(function() {
	$("a[name]").css("background-color","#eee");
	});
	
	$('#faq').find('dd').hide().end().find('dt').click(function() {
         var answer = $(this).next();
         if (answer.is(':visible')) {
             answer.slideUp();
         } else {
             answer.slideDown();
         }
     });
	$("a").hover(function() {
		$(this).parents("p").addClass("highlight");
	}, function() {
		$(this).parents("p").removeClass("highlight");
	});
	
	
  /* $("a").toggle(function() {
		$(".stuff").animate({
			height: 'hide',
			opacity: 'hide'
		}, 'slow');
	}, function() {
		$(".stuff").animate({
			height: 'show',
			opacity: 'show'
		}, 'slow');
	});*/
	$("#large").tableSorter({
		stripingRowClass: ['odd','even'],	// Class names for striping supplyed as a array.
		stripRowsOnStartUp: true		// Strip rows on tableSorter init.
	});
	
	
});